<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="catalog" tagdir="/WEB-INF/tags/catalog"%>

<content tag="buttons">
	<probiz:iconBtn btnType="back" onclick="returnToList();" />
</content>	


<c:choose>
	<c:when test="${not empty productTypeList}">
		<div class="warning_msg">
			<b><fmt:message key="productForm.step1"/></b><br/><br/>
			<fmt:message key="productFormSelectType.noThenDefine3"/>
			<a href="${ctxPath}/product/productType.html?doAction=add"><fmt:message key="productFormSelectType.here"/></a>
			<fmt:message key="productFormSelectType.noThenDefine2"/>
		</div>
		<form id="productTypeListForm" class="mainForm" name="productTypeListForm" method="post" action="${ctxPath}/product/prod/blank.html">
			<c:set var="pagingId" value="SelectType"/>
			<div class="top clearfix">
				<ul class="tab">
					<li class="curr"><span><fmt:message key="menu.productTypeList"/></span></li>
				</ul>
				<%@include file="/common/pagingOnlyTop.jsp"%>
			</div>
			<div class="data" >
				<display:table name="${productTypeList}" cellspacing="0" cellpadding="0" uid="productType" class="list_table" export="false" requestURI="">
					<display:column style="width: 15%;" sortable="false"  decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="productType.productTypeName">
						<a href="javascript:void(0)" onclick="selectProductTypeCallback(${productType.productTypeId},'${productCategoryId}');return false;">${productType.productTypeName}</a>
					</display:column>
					<display:column property="productTypeDescription" sortable="false" headerClass="data-table-title" decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="productType.productTypeDescription" />
					
				</display:table>
				<input type="hidden" name="package" id="package" value="${param.package}"/>
				<div class="blank10"></div>
				<%@include file="/common/pagingOnly.jsp"%>
			</div>
		</form>
		<script type="text/javascript">
		highlightTableRows("productType");
		</script>
	</c:when>
	<c:otherwise>
		<div class="warning_msg">
			<b><fmt:message key="productForm.step1"/></b><br/>
			<fmt:message key="productFormSelectType.noThenDefine1"/>
			<a href="${ctxPath}/product/productType.html?doAction=add"><fmt:message key="productFormSelectType.here"/></a>
			<fmt:message key="productFormSelectType.noThenDefine2"/>
				
		</div>
	</c:otherwise>
</c:choose>
